package com.bw.mmcro.controller;


import com.bw.mmcro.entity.Shop;
import com.bw.mmcro.service.IShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 黄旭超
 * @since 2022-05-20
 */
@RestController
@RequestMapping("/shop")
public class ShopController {

    @Autowired
    IShopService shopService;

    @RequestMapping("list")
    public List<Shop> list(){
        return shopService.list();
    }
}
